<?php
abstract class ez_Abstract
{
	private $baseUrl;
	private $appPath;
	protected function getUrl($url)
	{
		if (ENABLED_REWRITE) {
			return $baseUrl.$url;
		} else {
			return $baseUrl.'index.php/'.$url;
		}
	}
	
	protected function getAppPath($path)
	{
		return $this->appPath.DS.$path;
	}
	
	public function setBaseUrl($url)
	{
		$this->baseUrl = $url;
	}
	
	public function setAppPath($path)
	{
		$this->appPath = $path;
	}
	
}